<div class="divColorbox">
    <div class="divColorbox_Header">
        <span><i class="fa fa-star"></i><span>坐骑单据信息</span></span>
        <a class="Refresh"></a><a class="Close"></a>
    </div>
    <div class="divColorbox_Body row">
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">用户ID</span>
                    <input id="User_ID" type="text" class="form-control" readonly/>
                    <span class="input-group-btn">
                        <a id="btnUserInfo" class="btn btn-default btn-sm" data-permission-code="{User}[Base](Info)" data-rel="tooltip" data-placement="left" data-original-title="查看用户">
                            <i class="fa fa-search"></i>
                        </a>
                    </span>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">用户昵称</span>
                    <input id="User_NickName" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">用户姓名</span>
                    <input id="User_RealName" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">单据号</span>
                    <input id="Order_No" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">坐骑值</span>
                    <input id="Mounts_Value" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">坐骑模式</span>
                    <input id="Mounts_Mode" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">坐骑 ID</span>
                    <input id="Mounts_ID" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">坐骑名称</span>
                    <input id="Mounts_Name" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">坐骑单价</span>
                    <input id="Mounts_Price" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">数量</span>
                    <input id="Order_Num" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">订单金额</span>
                    <input id="Order_Amt" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">创建时间</span>
                    <input id="Create_Date" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">创建IP</span>
                    <input id="Create_IP" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
    </div>
    <div class="divColorbox_Footer">
        <button type="button" id="btnUndo"></button>
    </div>
</div>
<script src="<%- Virtual_Path.Static %>jquery.plugin/dataTables/jquery.dataTables.min.js"></script>
<script src="<%- Virtual_Path.Static %>jquery.plugin/dataTables/jquery.dataTables.bootstrap.min.js"></script>
<script>
    $(function () {
        //region 判断flag
        if (_PageData.flag !== 0) {
            $.KOC.Tips.Open('Error', _PageData.flag, {
                Timeout: 1000,
                onClose: function () {
                    parent.$.colorbox.close();
                }
            });
            return;
        }
        //endregion
        //region 页面数据绑定
        $('#Order_No').val(_PageData.Order_No);
        //region 用户
        $('#User_ID').val(_PageData.Order_Mounts.User_ID);
        $('#User_NickName').val(_PageData.Order_Mounts.User_NickName);
        $('#User_RealName').val(_PageData.Order_Mounts.User_RealName);
        //endregion
        $('#Mounts_ID').val(_PageData.Order_Mounts.Mounts_ID);
        $('#Mounts_Name').val(_PageData.Order_Mounts.Mounts_Name);
        $('#Mounts_Mode').val(_PageData.Order_Mounts.Mounts_Mode);

        $('#Mounts_Price').val(_PageData.Order_Mounts.Mounts_Price);
        $('#Mounts_Value').val(_PageData.Order_Mounts.Mounts_Value);
        $('#Order_Amt').val(_PageData.Order_Mounts.Order_Amt);
        $('#Order_Num').val(_PageData.Order_Mounts.Order_Num);

        $('#Create_Date').val(moment(_PageData.Order_Mounts.Create_Date).format('YYYY/MM/DD HH:mm:ss'));
        $('#Create_IP').val(_PageData.Order_Mounts.Create_IP);
        //endregion
        if (_PageData.Order_Mounts.User_ID) {
            $('#btnUserInfo').click(function () {
                $.CommonAdmin.OpenWindow(':UserInfo:' + _PageData.Order_Mounts.User_ID);
            });
        } else {
            $('#btnUserInfo').remove();
        }
    });
</script>